﻿@model Chilis.Franquicias.Web.Models.ViewModel.SolicitudViewModel
@{
    ViewBag.Title = "Solicitud";
}    
@using (Html.BeginForm("RegistroSolicitud", "Solicitud", FormMethod.Post,
        new { enctype = "multipart/form-data", id = "frmRegistroSolicitud" }))
{ 
<div class="breadLine">
    <div class="bc">
        <ul id="breadcrumbs" class="breadcrumbs">
        <li><a href="#">Inicio</a></li>
            <li><a href="#">Solicitud</a></li>
            <li class="current"><a href="#" title="">Nueva Solicitud</a></li>        
        </ul>
    </div>
        
</div>

<script type="text/javascript" language="javascript">
    $("#lblTitulo").html('<strong>Busqueda de Encuesta: </strong>');
</script>


<div class="wrapper">
    <div class="main">
        <div class="form">
            <fieldset>
                 <div class="widget togglesGroup">
                    <div class="whead opened" id="toggleOpened">
                        <h6>
                            Información General
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Fecha:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.Fecha,
                                                    new
                                                    {
                                                        @id = "IDFecha",
                                                        @disabled = false,
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.Fecha)
                                                    })                                                                                                                               
                                                </div>                        
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Fecha Entrvista:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FechaEntrevista,
                                                    new
                                                    {
                                                        @id = "IDFechaEntrevista",
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.FechaEntrevista)
                                                    })                
                                                </div>                       
                                            </div>
                                             <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Estado Solicitud:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.DropDownListFor(m => m.FQ_Solicitud.FQ_EstadoSolicitud.FQ_EstadoSolicitud_ID,
                                                    new SelectList((System.Collections.IEnumerable)Model.ListaFQ_EstadoSolicitud, "FQ_EstadoSolicitud_ID", "EstadoSolicitud"),
                                                    "- SELECCIONE -",
                                                    new
                                                    {
                                                        @class = "selector",
                                                        @id = "IDFQ_EstadoSolicitud_ID",
                                                        @onchange = "return ValidarSolicitudRegistro();"
                                                    })
                                                    <div id="Div_FQ_EstadoSolicitud_ID"style="color:Red; font-size:9px;"></div>               
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Resumen:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextAreaFor(m => m.FQ_Solicitud.Resumen,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @maxlength = "1200",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event)",
                                                        @class = "charsRemaining",
                                                        @id = "ID_Resumen",
                                                        rows = "4",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;"
                                                    })    
                                                    <div id="Div_Resumen"style="color:Red; font-size:9px;"></div>                                                                       
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Descripción:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextAreaFor(m => m.FQ_Solicitud.Descripcion,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @maxlength = "1200",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event)",
                                                        @class = "charsRemaining",
                                                        @id = "ID_Descripcion",
                                                        rows = "4",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;"
                                                    })  
                                                    <div id="Div_Descripcion"style="color:Red; font-size:9px;"></div>                      
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>                        
                    </div>

                    <div class="whead closed">
                        <h6>
                            Datos del Candidato
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">
                         @Html.HiddenFor(m => m.FQ_Solicitud.FQ_Candidato.FQ_Candidato_ID, new { @id = "FQ_Candidato_ID" })
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Candidato:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_Candidato.Nombre,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @disabled = false,
                                                        @id = "IDNombre",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })                                                                               
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Apellidos:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_Candidato.Apellidos,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @disabled = false,
                                                        @id = "IDApellidos",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })                  
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Dirección:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_Candidato.Direccion,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @disabled = false,
                                                        @id = "IDDireccion",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })                                                                               
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">N° Documento:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_Candidato.NumeroDocumento,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @disabled = false,
                                                        @id = "IDNumeroDocumento",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "15",
                                                        @class = "three_mediano"
                                                    })                  
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </div>

                    <div class="whead closed">
                        <h6>
                            Referencias Laborales
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                      
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Empresa:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.NombreEmpresa,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_NombreEmpresa",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })    
                                                    <div id="Div_NombreEmpresa"style="color:Red; font-size:9px;"></div>                                                                           
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Cargo:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.Cargo,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Cargo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_Cargo"style="color:Red; font-size:9px;"></div>                 
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Inicio Contrato:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.InicioTiempoServicio,
                                                    new
                                                    {
                                                        @id = "IDInicioTiempoServicio",
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.FQ_ReferenciaLaboral.InicioTiempoServicio)
                                                    })                                                                              
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Fin Contrato:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.FinTiempoServicio,
                                                    new
                                                    {
                                                        @id = "IDFinTiempoServicio",
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.FQ_ReferenciaLaboral.FinTiempoServicio)
                                                    })               
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Dirección:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.Direccion,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Direccion",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })  
                                                    <div id="Div_Direccion"style="color:Red; font-size:9px;"></div>                                                                                  
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Correo:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.correoElectronico,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Correo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "50",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_Correo"style="color:Red; font-size:9px;"></div>                  
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Teléfono:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.Telefono,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Telefono",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "15",
                                                        @class = "three_mediano"
                                                    })  
                                                    <div id="Div_Telefono"style="color:Red; font-size:9px;"></div>                                                                          
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Sueldo:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaLaboral.Sueldo,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Sueldo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "15",
                                                        @class = "three_mediano"
                                                    }) 
                                                    <div id="Div_Sueldo"style="color:Red; font-size:9px;"></div>              
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </div>

                    <div class="whead closed">
                        <h6>
                            Información Patrimoni Positivo
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                        
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">CTS:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialPos.CtsBancarias,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_CtsBancarias",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    }) 
                                                     <div id="Div_CtsBancarias"style="color:Red; font-size:9px;"></div>                                                                              
                                                </div>                        
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Aciones:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialPos.Acciones,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Acciones",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    }) 
                                                    <div id="Div_Acciones"style="color:Red; font-size:9px;"></div>                 
                                                </div>                       
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Inmuebles:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialPos.Inmuebles,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Inmuebles",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })
                                                     <div id="Div_Inmuebles"style="color:Red; font-size:9px;"></div>                                                                                   
                                                </div>                        
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Vehiculos:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialPos.Vehiculos,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Vehiculos",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })
                                                    <div id="Div_Vehiculos"style="color:Red; font-size:9px;"></div>                                                                                    
                                                </div>                        
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Otros:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialPos.Otros,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_OtrosPatrimonioPositivo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    }) 
                                                    <div id="Div_OtrosPatrimonioPositivo"style="color:Red; font-size:9px;"></div>             
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>                                        
                                    </div>
                                </fieldset>
                            </div>
                        </div>                        
                    </div>

                    <div class="whead closed">
                        <h6>
                            Patrimonio Negativo
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                        
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Hipotecas:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialNeg.Hipotecas,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Hipotecas",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })   
                                                    <div id="Div_Hipotecas"style="color:Red; font-size:9px;"></div>                                                                            
                                                </div>                        
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Creditos:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialNeg.Creditos,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Creditos",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })   
                                                    <div id="Div_Creditos"style="color:Red; font-size:9px;"></div>               
                                                </div>                       
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Prestamos:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialNeg.Prestamos,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Prestamos",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })  
                                                    <div id="Div_Prestamos"style="color:Red; font-size:9px;"></div>                                                                             
                                                </div>                        
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">CTS Por Pagar:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialNeg.Ctsxpagar,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Ctsxpagar",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })
                                                    <div id="Div_Ctsxpagar"style="color:Red; font-size:9px;"></div>                                                                                 
                                                </div>                        
                                            </div>

                                            <div class="grid4">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Otros:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_InformacionPatrimonialNeg.Otros,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_OtrosPatrimonioNegativo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_09(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "18",
                                                        @class = "three_mediano"
                                                    })  
                                                    <div id="Div_OtrosPatrimonioNegativo"style="color:Red; font-size:9px;"></div>            
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>                                        
                                    </div>
                                </fieldset>
                            </div>
                        </div>                         
                    </div>

                    <div class="whead closed">
                        <h6>
                            Referencia Bancaria
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                       
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Banco:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaBancaria.Nombre,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_NombreBanco",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })
                                                    <div id="Div_NombreBanco"style="color:Red; font-size:9px;"></div>                                                                                
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Tipo Cuenta:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaBancaria.TipoCuenta,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_TipoCuenta",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_TipoCuenta"style="color:Red; font-size:9px;"></div>                 
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Sucursal:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaBancaria.Sucursal,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Sucursal",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })
                                                    <div id="Div_Sucursal"style="color:Red; font-size:9px;"></div>                                                                                             
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Sectoria:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaBancaria.Sectorista,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_Sectorista",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                     <div id="Div_Sectorista"style="color:Red; font-size:9px;"></div>                 
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>                        
                    </div>

                    <div class="whead closed">
                        <h6>
                            Referencia Comercial
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                        
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Nombre Empresa:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaComercial.NombreEmpresa,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_NombreEmpresaComercial",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_NombreEmpresaComercial"style="color:Red; font-size:9px;"></div>                                                                               
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Dirección:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaComercial.Direccion,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "IDDireccionEmpresaComercial",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_DireccionEmpresaComercial"style="color:Red; font-size:9px;"></div>                     
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>

                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Contacto:</label>
                                                </div>
                                                <div class="grid9">
                                                   @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ReferenciaComercial.Contacto,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "IDContactoEmpresaComercial",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })  
                                                    <div id="Div_ContactoEmpresaComercial"style="color:Red; font-size:9px;"></div>                                                                                        
                                                </div>                        
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>                        
                    </div>

                    <div class="whead closed">
                        <h6>
                            Anexo Solicitud
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Archivo:</label>
                                                </div>
                                                <div class="grid9">
                                                    <div id="AdjuntoSolicitud">                                    
                                                        <input type="file" id="Adjunto1" name = "Adjunto1" />
                                                    </div>                                                                                                                           
                                                </div>                        
                                            </div>
                                                                                        
                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Descriptivo Archivo:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_Anexo.NombreDescriptivo,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_NombreDescriptivoAnexo",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    }) 
                                                    <div id="Div_NombreDescriptivoAnexo"style="color:Red; font-size:9px;"></div>                    
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                                                                
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </div>

                    <div class="whead closed">
                        <h6>
                            Observación Solicitud
                        </h6>
                        <div class="clear"></div>
                    </div>
                    <div class="body">                         
                        <div class="main">
                            <div class="form">
                                <fieldset>
                                    <div class="widget fluid">
                                        <div class="formRow fluid">
                                            <div class="grid3">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Fecha Registro:</label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ObservacionSolicitud.FechaRegistro,
                                                    new
                                                    {
                                                        @id = "IDFechaRegistroObservacion",
                                                        @disabled = false,
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.FQ_ObservacionSolicitud.FechaRegistro)
                                                    })                                                                                                                               
                                                </div>                        
                                            </div>

                                            <div class="grid3">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Plazo:</label>
                                                </div>
                                                <div class="grid9">                                                  
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ObservacionSolicitud.Plazo,
                                                    new
                                                    {
                                                        @id = "IDPlazo",
                                                        @class = "datepicker textinput",
                                                        onCopy = "return false;",
                                                        onPaste = "return false;",
                                                        maxlength = "10",
                                                        @width = "170px",
                                                        Value = String.Format("{0:d}", Model.FQ_Solicitud.FQ_ObservacionSolicitud.Plazo)
                                                    })                                                                                 
                                                </div>                        
                                            </div>

                                            <div class="grid6">                        
                                                <div class="grid3">
                                                    <label class="form-label" for="tipoPersona">Usuario Registro:
                                                        <small class="alert_validation"></small>
                                                    </label>
                                                </div>
                                                <div class="grid9">
                                                    @Html.TextBoxFor(m => m.FQ_Solicitud.FQ_ObservacionSolicitud.UsuarioRegistro,
                                                    new
                                                    {
                                                        @style = "text-transform:uppercase;",
                                                        @id = "ID_UsuarioRegistro",
                                                        @onblur = "return ValidarSolicitudRegistro();",
                                                        @onkeypress = "return val_Descripcion(event);",
                                                        @onCopy = "return false;",
                                                        @onPaste = "return false;",
                                                        @maxLength = "150",
                                                        @class = "textinput"
                                                    })  
                                                    <div id="Div_UsuarioRegistro"style="color:Red; font-size:9px;"></div>                   
                                                </div>                       
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                                                                
                                    </div>

                                    <div class="formRow fluid">
                                        <div class="grid12">                        
                                            <div class="grid2">
                                                <label class="form-label" for="tipoPersona">Comentario:</label>
                                            </div>
                                            <div class="grid10">
                                                @Html.TextAreaFor(m => m.FQ_Solicitud.FQ_ObservacionSolicitud.Comentario,
                                                new
                                                {
                                                    @style = "text-transform:uppercase;",
                                                    @maxlength = "1200",
                                                    @onblur = "return ValidarSolicitudRegistro();",
                                                    @onkeypress = "return val_Descripcion(event)",
                                                    @class = "charsRemaining",
                                                    @id = "ID_Comentario",
                                                    rows = "4",
                                                    onCopy = "return false;",
                                                    onPaste = "return false;"
                                                }) 
                                                <div id="Div_Comentario"style="color:Red; font-size:9px;"></div>                                                                          
                                            </div>                        
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </div>

                 </div>

                 <div class="formRow">
                    <input id="Btn_CancelarSolicitud" type="button" style="cursor:pointer" value="Cancelar" class="buttonS bBlue formSubmit group_button" onclick="CancelarRegistroSolicitud();" />
                    <input id="Btn_GrabarSolicitud" type="button" style="cursor:pointer" value="Grabar" class="buttonS bBlue formSubmit group_button" onclick="RegistrarSolicitud();" />
                    <div class="clear"></div>
                </div>  
            </fieldset>
        </div>
    </div>
</div>    
    
    <div id="dialogInformacionCancelarSolicitud" title="Mensaje de Confirmación" style = "display:none">
        <p>¿Desea cancelar el registro de la solicitud?</p>
    </div>
    
    <div id="dialogInformacionRegistroSolicitud" title="Mensaje de Confirmación" style = "display:none">
        <p>¿Desea registrar la solicitud?</p>
    </div>    
}

@if (Session["mensajeCliente"] != null)
{
    <div id="dialogoResultadoRegistro" title="Mensaje de Confirmación">
        <p id="resul">¿@Session["mensajeCliente"]?</p>
    </div>
    
   <script language="javascript" type="text/javascript">
       $(window).load(
            function () {
                var Resu = $('#resul').val();
                if (Resu != null) {
                    RegistroSatisfactorio();
                }
            }
        );
       
    </script>
    Session["mensajeCliente"] = null;
}

<script language="javascript" type="text/javascript">


    function RegistroSatisfactorio() {
        $('#dialogoResultadoRegistro').dialog('open');
        return false;
    }

    $(function () {
        $('#dialogoResultadoRegistro').dialog({
            autoOpen: false,
            width: 400,
            modal: true,
            resizable: false,
            buttons: {
                "Aceptar": function () {
                    $('#dialogoResultadoRegistro').dialog("close");
                    window.location = "/Solicitud/SolicitudPendiente";
                }
            }
        });

    });   
</script>

<script type="text/javascript" src="@Url.Content("~/Scripts/View/CandidatoSolicitud.js")"></script>